import Vue from "vue";
import './plugins/axios'

import App from "./App.vue";
import router from "./router";
import store from "./store/index.js";

import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import './plugins/element.js'
import './common.css'
import './animate.css'
import './font/iconfont.css'
import './font/sjiconfont.css'
Vue.use(ElementUI);
import vuescroll from 'vuescroll';
Vue.use(vuescroll, {
  ops: {
	   bar: {
    background: '#777',
		keepShow:true,
		// onlyShowBarOnScroll:false
  }
  }, // 在这里设置全局默认配置// 在这里自定义组件名字，默认是vueScroll
});

import Echarts from 'echarts'
Vue.prototype.echarts = Echarts
Vue.use(Echarts)

import VueAMap from 'vue-amap';
Vue.use(VueAMap);
VueAMap.initAMapApiLoader({
  key: '6446e9687575c5d97f8c95b394bd301a',
  plugin: ['AMap.Geolocation'],
  // 默认高德 sdk 版本为 1.4.4
  v: '1.4.4'
});

import {
	axiosGet,
	axiosPost,
	axiosChange,
	moment,
	removeAlert
} from '@/common.js'
Vue.prototype.axiosGet = axiosGet
Vue.prototype.axiosPost = axiosPost
Vue.prototype.axiosChange = axiosChange
Vue.prototype.newMoment = moment
Vue.prototype.removeAlert = removeAlert

const hls = require('videojs-contrib-hls')
Vue.use(hls)

Vue.config.productionTip = false;
Vue.router = router

new Vue({
	router,
	store,
	render: h => h(App)
}).$mount("#app");
